home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / OS / FWGraphx / Sources / FWDfault.cpp < prev    next >
Encoding:
Text File  |  1994-04-21  |  2.4 KB  |  85 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWDfault.cpp
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Creation Date:        3/28/94
  7. //
  8. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef FWDFAULT_H
  13. #include "FWDfault.h"
  14. #endif
  15.  
  16. #ifndef FWCOLOR_H
  17. #include "FWColor.h"
  18. #endif
  19.  
  20. // ----- Macintosh Includes -----
  21.  
  22. #if defined(FW_BUILD_MAC) && !defined(mathRoutinesIncludes)
  23. #include <math routines.h>
  24. #endif
  25.  
  26. //==============================================================================
  27. //    •• RunTime Info
  28. //==============================================================================
  29.  
  30. #ifdef FW_BUILD_MAC
  31. #pragma segment fwgraphx
  32. #endif
  33.  
  34. //==============================================================================
  35. //    •• struct FW_SDefaultProperties
  36. //==============================================================================
  37.  
  38. //------------------------------------------------------------------------------
  39. //    FW_SDefaultProperties::FW_SDefaultProperties
  40. //------------------------------------------------------------------------------
  41.  
  42. FW_SDefaultProperties::FW_SDefaultProperties(FW_CInk ink, FW_CStyle style, FW_ShapeFills fill) :
  43.     fInk(ink),
  44.     fStyle(style),
  45.     fFill(fill)
  46. {    
  47. }
  48.  
  49. //------------------------------------------------------------------------------
  50. //    FW_SDefaultProperties::FW_SDefaultProperties
  51. //------------------------------------------------------------------------------
  52.  
  53. FW_SDefaultProperties::FW_SDefaultProperties() :
  54.     fInk(FW_kRGBBlack, FW_kRGBWhite, FW_kCopy),
  55.     fStyle(ff(1)),
  56.     fFill(FW_kFilled)
  57. {    
  58. }
  59.  
  60. //==============================================================================
  61. //    •• struct FW_SGraphicGlobales
  62. //==============================================================================
  63.  
  64. //------------------------------------------------------------------------------
  65. //    FW_SGraphicGlobales::FW_SGraphicGlobales
  66. //------------------------------------------------------------------------------
  67.  
  68. FW_SGraphicGlobales::FW_SGraphicGlobales() :
  69.     gSeed(0),
  70.     gRect(),
  71.     gOval(),
  72.     gArc(),
  73.     gLine(),
  74.     gRoundRect(),
  75.     gText(FW_CInk(FW_kRGBBlack, FW_kRGBWhite, FW_kOr), FW_CStyle("", FW_kPlain, ff(12)), FW_kFilled),
  76.     gRegion(),
  77.     gBitmap(),
  78.     gPicture(),
  79.     gLastGC(NULL)
  80. #ifdef FW_BUILD_MAC
  81.     ,gScratchWindow(NULL)
  82. #endif
  83. {    
  84. }
  85.